using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;

namespace ns
{
    ///<summary>
    ///
    ///</summary>
    public class AnimationBehaviour : MonoBehaviour
    {
        private Animator anim;
        public UIMainWindow uiMainWindow;
        private void Start()
        {
            uiMainWindow=FindObjectOfType<UIMainWindow>();
             anim = GetComponent<Animator>();
        }
        private void OnCancelAnim(string Param)
        {
            UnityEngine.Debug.Log("OnCancelAnim");
            uiMainWindow.fsm.outfire=true;
        }
        private void Jump()
        {
            GameObject.Find("people").transform.position += new Vector3(2f, 0, 0);
        }
        private void Jump_l()
        {
            GameObject.Find("people").transform.position += new Vector3(4, 0, 0);
        }
        private void magicenter()
        {
            uiMainWindow.fsm.magicout = true;
        }
        private void magicexit()
        {
            uiMainWindow.fsm.magicover = true;
        }
    }
}
